﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using CE.Global;
public partial class user_log_out : MyLanguageBasePage
{
    protected override void InitializeCulture()
    {
        String selectedCulture = CE.Global.General.SetCulture();
        base.InitializeCulture();
    }

    string _redirectURL = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.Cookies["GGQuote"] != null)
            {
                Response.Cookies["GGQuote"].Expires = DateTime.Now.AddDays(-1);
                Session.Abandon();
            }
            CE.Global.General.ClearAllSession(this.Page, "LOGOUT");
            _redirectURL = CE.Global.General.GetUrl("/home", Page);
            Response.Redirect(_redirectURL);
        }
    }
}
